import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;


public class P1309 {
     static class Player {
        int id;
        int InitialScore;
        int fight;

        public Player(int id, int initialScore, int fight) {
            this.id = id;
            InitialScore = initialScore;
            this.fight = fight;
        }
    }

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int N = 0, R = 0, Q = 0;
        String tmp = br.readLine();
        N = Integer.parseInt(tmp.split(" ")[0]);
        R = Integer.parseInt(tmp.split(" ")[1]);
        Q = Integer.parseInt(tmp.split(" ")[2]);
        int n = 2 * N;
        Player[] players = new Player[n];
        String str1 = br.readLine();
        String str2 = br.readLine();
        String[] pal1 = str1.split(" ");
        String[] pal2 = str2.split(" ");
        for (int i = 1; i <= n; i++) {
            players[i - 1] = new Player(i, Integer.parseInt(pal1[i - 1]), Integer.parseInt(pal2[i - 1]));
        }
        Arrays.sort(players, new Comparator<Player>() {
            @Override
            public int compare(Player o1, Player o2) {
                if (o1.InitialScore == o2.InitialScore) {
                    return o1.id - o2.id;
                }
                return o2.InitialScore - o1.InitialScore;
            }
        });
        for (int i = 0; i < R; i++) {
            for (int j = 0; j < N; j++) {
                int tmpNum = 2 * j;
                if (players[tmpNum].fight < players[tmpNum + 1].fight) {
                    players[tmpNum + 1].InitialScore++;
                } else if (players[tmpNum].fight > players[tmpNum + 1].fight) {
                    players[tmpNum].InitialScore++;
                }
            }
            Arrays.sort(players, new Comparator<Player>() {
                @Override
                public int compare(Player o1, Player o2) {
                    if (o1.InitialScore == o2.InitialScore) {
                        return o1.id - o2.id;
                    }
                    return o2.InitialScore - o1.InitialScore;
                }
            });
        }
        System.out.println(players[Q-1].id);
    }
}
